<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib prefix="f" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="stripes" uri="http://stripes.sourceforge.net/stripes.tld"%>
<f:requestEncoding value="utf-8"/>
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="cs" lang="cs">
    <head><!--  ščřžýŠČŘŽÝ -->
        <meta name="generator" content="PSPad editor, www.pspad.com" />
        <meta http-equiv="content-type" content="text/html; charset=utf-8" />
        <link charset="utf-8" href="/casta/styles/style.css" rel="stylesheet" type="text/css" />
        <link rel="stylesheet" media="print" type="text/css" href="/casta/styles/style_print.css" />
        <!--[if IE 9]>
        <link rel="stylesheet" href="/casta/styles/style_ie9.css">
        <![endif]-->
        <title>${param.title}</title>
    </head>
    <body>
        <stripes:useActionBean var="login" binding="/login.action"/>
        <stripes:useActionBean var="forum" binding="/forum.action"/>
        <div id="page">
            <div id="header" class="no-print">
                <h1><a href="/casta/index.action">Hokejové fórum pro všechny fanoušky</a></h1>
            </div>
            <div id="menu" class="no-print">
                <ul>
                    <c:if test="${login.userBean == null}">
                        <li><h2><a href="/casta/login.action">Přihlásit se</a></h2></li>
                    </c:if>
                    <c:if test="${login.userBean != null}">
                        <li><h2><a href="/casta/forumAdd.action">Založit nové fórum</a></h2></li>
                        <c:if test="${login.userBean.admin == 1}">
                            <li><h2><a href="/casta/users.action">Seznam uživatelů</a></h2></li>
                        </c:if>
                        <li><h2><a href="/casta/logout.action">Odhlásit se</a></h2></li>
                    </c:if>
                    <c:if test="${login.userBean == null}">
                        <li><h2><a href="/casta/reg.action">Registrace</a></h2></li>
                    </c:if>
                </ul>
            </div>
            <div id="info" class="no-print">
                <c:if test="${login.userBean != null}">
                    <p>Jste přihlášen jako <a href="/casta/user.action?id=${login.userBean.id}">${login.userBean.login}</a></p>
                </c:if>
                <c:if test="${login.userBean == null}">
                    <p>Momentálně nejste přihlášen.</p>
                </c:if>

            </div>